extends Button

@export var navi_btn_data:NaviData

@onready var icon_rect = %TextureRect
@onready var navi_label = %Label

var navi_index = 0

func _ready():
	icon_rect.texture = navi_btn_data.navi_icon
	navi_label.text = navi_btn_data.navi_name

func _on_pressed():
	Signalbus.naviBtnCilcked.emit(navi_btn_data, navi_index)
